package com.cloudcc.cloudframe.adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/**
 * fragment viewpager
 * 
 * @author wangzhiqiang
 * @date 2015-7-31 上午9:16:09
 * 
 */
public class CommonPagerAdapter extends FragmentPagerAdapter {

	private List<Fragment> mPages;

	public CommonPagerAdapter(FragmentManager fm, List<Fragment> pages) {
		super(fm);
		this.mPages = pages;
	}

	@Override
	public Fragment getItem(int position) {
		return mPages.get(position);
	}

	@Override
	public int getCount() {
		return mPages.size();
	}

}
